home *** CD-ROM | disk | FTP | other *** search
- <%@ Language=VBScript %>
- <HTML>
- <HEAD>
- <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
- <title>DameWare Components ASP Test</title>
- </head>
-
- <body>
-
- <%
-
- ' ************** UserList *****************
- Set UserList = Server.CreateObject("DameWare.UserListCtl.1")
-
- If Request("Posted") <> "" Then
-
- If Request("txtNew") <> Request("txtNewconfirm") Then
- %>
- <script LANGUAGE="JavaScript">
- alert("Passwords do not match, try again.");
- </script>
- <%
- Else
-
- ' perform password change
- UserList.Machine = "\\metrysrv"
- UserList.UserName = Request("txtUserID")
- UserList.UserNewPassword = Request("txtNew")
- UserList.UserChangePassword
-
- End If
-
- End If
-
- %>
-
- <center>
- <br>
- <hr WIDTH="80%" COLOR="INDIGO">
- <font SIZE="6" FACE="Times New Roman" COLOR="INDIGO">UserList ASP Sample</font>
- <hr WIDTH="80%" COLOR="INDIGO">
- </center>
-
- <Form Action="UserList.asp" Method="POST" id=form1 name=form1>
-
- <TABLE Align=Center BORDER=0 WIDTH=600 BGColor=Gray Text=Indigo>
- <TD><B>User Account:</B></TD>
- <TD><Input Type=text Name="txtUserID" SIZE=50 Value=""></TD>
- </TR>
- <TR>
- <TD><B>Old Password</B></TD>
- <TD><Input Type=password Name="txtOld" SIZE=50 Value=""></TD>
- </TR>
- <TR>
- <TD><B>New Password</B></TD>
- <TD><Input Type=password Name="txtNew" SIZE=50 Value=""></TD>
- </TR>
- <TR>
- <TD><B>New Password (confirm)</B></TD>
- <TD><Input Type=password Name="txtNewconfirm" SIZE=50 Value=""></TD>
- </TR>
- </table>
-
- <CENTER><INPUT TYPE="Submit" value="Change Password" name="BtnChangePassword"></CENTER><BR>
-
- <Input Type="Hidden" Name="Posted" Value="working">
-
- </FORM>
-
- <%
-
- Set UserList = Nothing
-
- %>
-
- </body>
- </html>
-